package sg.edu.nus.iss.team2s.jass.control;

import sg.edu.nus.iss.team2s.jass.dao.DAOException;
import sg.edu.nus.iss.team2s.jass.dao.DAOFactory;
import sg.edu.nus.iss.team2s.jass.dao.DAOInterface;
import sg.edu.nus.iss.team2s.jass.dto.JobAdvert;

public class JobAdvertController {
	public static boolean addJobAdvertEntry(JobAdvert jobAdvert){
		DAOInterface userInterface = (DAOInterface)DAOFactory.getInstance().getDAO(jobAdvert.getClass().getName());
		try {
			userInterface.add(jobAdvert);
		} catch (DAOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return false;
	}
	
	public static void apply(JobAdvert jobAdvert){
		
	}
}
